package common.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class ConfigUtil {
    public static JSONObject Default;

    static {
        try {
            Default = (JSONObject) JsonUtil.parseFromFile("config/settings.json");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static JSON DeseriseFromFile(String fileName) throws Exception {
        return JsonUtil.parseFromFile("config/" + fileName);
    }
}
